export default {
    namespaced: true,
    state: {
        loadingState: false,
        requestCount: 0,
        responseCount: 0
    },
    mutations: {
        setLoadingState(state, data) {
            state.loadingState = data
        },
        setRequestCount(state) {
            state.requestCount++
        },
        setResponseCount(state) {
            state.responseCount++
        },
        resetRequestCount(state) {
            state.requestCount = 0
        },
        resetResponseCount(state) {
            state.responseCount = 0
        },
    }
}